<?//顺序是固定的，先连接数据库是最优先的。config中有很多设置，是要用到函数的?>
<?php include_once ("../connection.php");?>
<?php include_once ("../config.php");?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once (THEME_PATH_."/controller/introduce-term.php"); ?>
    <?php include 'modules/head.php'; ?>
    <link href="/front/<?php echo $theme_folder ?>/assets/css/theme/pages/introduce.css" rel="stylesheet" type="text/css" />
</head>






<body class="<?echo $system_part ?>-<?echo $system_part_level ?>">
<?php include 'modules/topbar.php'; ?>
<?php include 'modules/menu.php'; ?>
<?php include 'modules/banner.php'; ?>





<!--container/main-->
<div class="container">
<div class="main">
<!--container/main-->




        <div class="location">
            <?php include '/modules/location-term.php'; ?>
        </div>



        <div class="head">
            <div class="bg" ><span style=";"><?echo $data['now_plate']['name']?></span></div>
            <div class="subtitle"><?echo $data['now_plate']['subtitle']?></div>
            <h1><?echo $data['now_plate']['name']?><hr/></h1>
        </div>




        <div class="now-plate">
            <div class="content">
                <? echo $data['now_plate']['name'];?>
                <? echo $data['now_plate']['introduce'];?>
            </div>
        </div>







    <div class="term-list">
        <ul>


            <!--循环1级分类-->
            <? foreach($data['term_list'] as $k=>$v) {?>


                <li>
                    <a href="<? echo $v['url'] ?>.html"
                       title="<? echo $v['name'] ?>">
                        <span ><? echo $v['name'] ?></span>
                    </a>



                    <!--循环2级分类-->
                    <? if (count($v['term_list_2']) > 0) { ?>
                        <div class="term2_list">
                            <ul>
                                <? foreach ($v['term_list_2'] as $k2 => $v2) { ?>
                                    <li><a href="<? echo $v2['url'] ?>.html"
                                           title="<? echo $v2['name'] ?>">
                                            <? echo $v2['name'] ?></a>



                                        <!--循环三级分类-->
                                        <? if (count($v2['term_list_3']) > 0){ ?>
                                            <div class="term3_list">
                                                <ul>
                                                    <? foreach ($v2['term_list_3'] as $k3 => $v3) { ?>
                                                        <li><a href="<? echo $v3['url'] ?>.html"
                                                               title="<? echo $v3['name'] ?>">
                                                                <? echo $v3['name'] ?></a>
                                                        </li>
                                                        <?php ;} ?>
                                                </ul>
                                            </div>
                                        <? } ?>
                                        <!--循环三级分类-->



                                    </li>
                                    <?php ;} ?>
                            </ul>
                        </div>
                        <div class="term_two_arrow"></div>
                    <? } ?>
                    <!--循环2级分类-->



                </li>
            <? }?>
        </ul>
    </div>







<!--container/main-->
<br class="clearfloat">
</div>
</div>
<!--container/main-->




<?php include 'modules/footer.php'; ?>
</body>
</html>